/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface pmPickWaters extends BasicModel<pmPickWaters> {
  createDate?: string; // 申请时间
  name?: string; // name
  projectno?: string; // 工程编码
  projectname?: string; // 工程名称
  applicant?: string; // 申请人
  applydate?: string; // 申请日期
  applypic?: string; // applypic
  constructionunit?: string; // 施工单位
  remarks?: string; // 申请说明
  assayresult?: string; // 检测结果
  assayupdate?: string; // 检测上传时间
  assayfile?: string; // assayfile
  assayassay?: string; // 检测报告评价
  contacts?: string; // 联系人
  telephone?: string; // 联系电话
  address?: string; // 采样地址
  ret?: string; // ret
}

export const pmPickWatersList = (params?: pmPickWaters | any) =>
  defHttp.get<pmPickWaters>({
    url: adminPath + '/process/analysis/pmPickWaters/list',
    params,
  });

export const pmPickWatersListData = (params?: pmPickWaters | any) =>
  defHttp.post<Page<pmPickWaters>>({
    url: adminPath + '/process/analysis/pmPickWaters/listData',
    params,
  });

export const pmPickWatersForm = (params?: pmPickWaters | any) =>
  defHttp.get<pmPickWaters>({
    url: adminPath + '/process/analysis/pmPickWaters/form',
    params,
  });

export const pmPickWatersSave = (params?: any, data?: pmPickWaters | any) =>
  defHttp.postJson<pmPickWaters>({
    url: adminPath + '/process/analysis/pmPickWaters/save',
    params,
    data,
  });
export const pmPickWatersMorerSave = (params?: any, data?: pmPickWaters | any) =>
  defHttp.postJson<pmPickWaters>({
    url: adminPath + '/process/analysis/pmPickWaters/save',
    params,
    data,
  });
export const pmPickWatersOaSave = (params?: any, data?: pmPickWaters | any) =>
  defHttp.postJson<pmPickWaters>({
    url: adminPath + '/process/analysis/pmPickWaters/save',
    params,
    data,
  });

export const pmPickWatersresultSave = (params?: any, data?: pmPickWaters | any) =>
  defHttp.postJson<pmPickWaters>({
    url: adminPath + '/process/analysis/pmPickWaters/resultSave',
    params,
    data,
  });

export const pmPickWatersDelete = (params?: pmPickWaters | any) =>
  defHttp.get<pmPickWaters>({
    url: adminPath + '/process/analysis/pmPickWaters/delete',
    params,
  });
